const { chromium } = require('playwright');

(async () => {

  const browser = await chromium.launch({
    channel: 'chromium',
    executablePath: '/usr/bin/chromium',
    headless: false,
    proxy: {
      server: 'socks5://1.92.153.12:7549',

    }
  });
  
  const page = await browser.newPage();
  
  // 访问显示 IP 的网站
  await page.goto('https://ip.cn/');
  
  // 等待页面加载完成
  await page.waitForLoadState('networkidle');
  

  
  
  await browser.close();
})(); 